import 'dart:convert';

import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/comment_list_entity.g.dart';

@JsonSerializable()
class CommentListEntity {
  List<CommentListList>? list;
  bool? hasNext;

  CommentListEntity();

  factory CommentListEntity.fromJson(Map<String, dynamic> json) => $CommentListEntityFromJson(json);

  Map<String, dynamic> toJson() => $CommentListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class CommentListList {
  int? id;
  String? headImg;
  String? nickname;
  String? content;
  String? commentDate;

  CommentListList();

  factory CommentListList.fromJson(Map<String, dynamic> json) => $CommentListListFromJson(json);

  Map<String, dynamic> toJson() => $CommentListListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
